<?php 
	$current_class = $this->uri->rsegment(1);
	$roles = array('Admin');
	//check for user is logged on
	if (! $this->user_auth->logged_in() OR ! $this->user_auth->allow($roles))
	{
		//redirect('admin/dashboard/login');
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Cinema Online Schedule Adminstrator System</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link href="<?php echo base_url()?>css/reset.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url()?>css/admin/base.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url()?>css/form-structure.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url()?>css/form-style.css" media="screen" rel="stylesheet" type="text/css" />
	
	
	<script src="<?php echo base_url()?>js/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script src="<?php echo base_url()?>js/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>
	<script src="<?php echo base_url()?>js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
	<script src="<?php echo base_url()?>ckeditor/ckeditor.js" type="text/javascript"></script>
	<script src="<?php echo base_url()?>ckeditor/base/base.js" type="text/javascript"></script>
	<link href="<?php echo base_url()?>css/dark-hive/jquery-ui-1.8.11.custom.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url()?>css/timepicker.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url()?>ckeditor/base/base.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="container">
		<div id="header" class="left">
			<h1>Movie Administrator System</h1>
		</div>
		<div id="information" class="right">
			<span><a href="<?php echo site_url('admin/dashboard/logout'); ?>">Logout</a></span>
		</div>
		<div class="clear-both"></div>
		<div id="navigator">
			<ul>
				<li <?php echo $this->admin_template->get_current_css_menu('schedule', $current_class)?>>
					<span><a href="<?php echo site_url('admin/schedule')?>">Schedule</a></span>
				</li>
				<li <?php echo $this->admin_template->get_current_css_menu('movie', $current_class)?>>
				    <span><a href="<?php echo site_url('admin/movie')?>">Movie</a></span> 
                </li>
                
                <li <?php echo $this->admin_template->get_current_css_menu('cinema', $current_class)?>>
				    <span><a href="<?php echo site_url('admin/cinema')?>">Cinema</a></span> 
                </li>
                <li <?php echo $this->admin_template->get_current_css_menu('branch', $current_class)?>>
				    <span><a href="<?php echo site_url('admin/branch')?>">Branch</a></span> 
                </li>
                <li <?php echo $this->admin_template->get_current_css_menu('content', $current_class)?>>
                    <span><a href="<?php echo site_url('admin/content')?>">Content</a></span>
                </li>
                <!--<li <?php echo $this->admin_template->get_current_css_menu('user', $current_class)?>>
                    <span><a href="<?php echo site_url('admin/user')?>">User</a></span>
                </li> -->
			</ul>
			<div class="clear-both"></div>			
		</div>
		<div id="content">
			<?php echo $content?>		
		</div>
		<div class="underline">&nbsp;</div>
		<div id="footer">
			<span>Copyright 2011 Cinema Online Schedule</span>		
		</div>
	</div>
	<?php if (1) {?>
	    <div id="debug">
		    <?php //$this->output->enable_profiler(1);?>
	    </div>
	<?php }?>
</body>
</html>
